<?php
class controller{
    protected $smarty;
    public function header(){
        header("content-type:text/html;chartset=utf-8");
    }
    
    public function smartyAction($fileName="Index"){
        require DOCUMENT_ROOT."/Framework/smarty/Smarty.class.php";
        $this->smarty=new Smarty();
        $this->smarty->template_dir=DOCUMENT_ROOT."/Application/{$fileName}/view";
        $this->smarty->compile_dir=DOCUMENT_ROOT."/Application/{$fileName}/view_c";
    }
}

